package io.springboot.jpa.examples.springbootjpaexamples.model.nosql;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yzc
 * @description
 * @date 2018/9/23
 */
@Document
public class BusinessMessage implements Serializable {

    private static final long serialVersionUID = 7492379893202994185L;
    /**
     * 流水号
     */
    @Id
    private String serialNumber;

    /**
     * 访问时间
     */
    private Date accessTime;

    /**
     * 业务类型
     */
    private String type;

    /**
     * 耗时
     */
    private long time;

    /**
     * 执行结果
     */
    private boolean result;

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Date getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(Date accessTime) {
        this.accessTime = accessTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }
}
